var fs =require("fs");
var path = require("path");

var filePath=path.join(__dirname,"/from.txt");
var filePath1=path.join(__dirname,"/to.txt");

var readable=fs.createReadStream(filePath);
var writable=fs.createWriteStream(filePath1);






readable.on("data",function(chunk){
    console.log((chunk.toString("utf-8")).toUpperCase());
})

readable.pipe(writable);
// writable.end();
